
package com.craterhill.java.ems.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.craterhill.java.ems.common.beans.Role;
import com.craterhill.java.ems.dao.RoleDao;
import com.craterhill.java.ems.service.RoleService;

@Service
public class RoleServiceImpl implements RoleService {

	@Autowired
	private RoleDao roleDao;

	@Override
	public List<Role> getRoles() {
		return roleDao.findAll();
	}
}
